//
//  DYEmployeeView.m
//  kafuMerchant
//
//  Created by 帝云科技 on 2018/9/18.
//  Copyright © 2018年 帝云科技. All rights reserved.
//

#import "DYEmployeeView.h"



@implementation DYEmployeeView

-(instancetype)initWithFrame:(CGRect)frame
{
    self=[super initWithFrame:frame];
    if (self) {
        [self initView];
    }
    return self;
}
-(void)initView
{
    NSArray *array=@[@"员工名",@"登录名",@"权限组"];
    for (NSInteger i=0; i<3; i++) {
        UILabel *label=[Utils labelWithTitle:array[i] titleFontSize:14 textColor:[UIColor xhq_aTitle] backgroundColor:WhiteColor alignment:1];
        label.frame=CGRectMake(i*kScreenWidth/3, 0, kScreenWidth/3, BILIHEIGHT(40));
        [self addSubview:label];
    }
    
    UILabel *line=[UILabel xhq_lineLabel];
    line.frame=CGRectMake(BILIWIDTH(10), BILIHEIGHT(40)-BILIWIDTH(0.7), kScreenWidth-BILIWIDTH(20), BILIWIDTH(0.7));
    [self addSubview:line];
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
